<template>
  <div class="options">
    <div class="option-item" @click="getOptionValue(props.label)">{{ props.label }}</div>
  </div>
</template>

<script setup lang="ts">
  import { inject } from 'vue'
  const getOptionValue: any = inject('getOptionsValue')

  const props = defineProps({
    label: {
      type: String
    },
    value: {
      type: String
    }
  })
</script>

<style scoped lang="scss">
  .options {
    &:hover {
      background-color: #ccc;
    }
    .option-item {
      padding: 2px 5px 2px 5px;
      height: 30px;
    }
  }
</style>
